﻿<UserControl x:Class="TouchCafe.Views.ItemView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"     
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
      Style="{Binding StaticResource MetroUserControl}"
      Background="Black">
    <Canvas Name="canvas">
        <Image Name="image" Source="{Binding Image}" RenderTransformOrigin="0.5, 0.5" Width="500">
            <Image.RenderTransform>
                <TransformGroup>
                    <RotateTransform Angle="{Binding Path=Angle}" />
                    <ScaleTransform ScaleX="{Binding Path=ScaleX}"  
                                    ScaleY="{Binding Path=ScaleY}">
                    </ScaleTransform>
                    <TranslateTransform X="{Binding Path=X}" Y="{Binding Path=Y}"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
    </Canvas>
</UserControl>
